<div class="row wrapper border-bottom white-bg page-heading">
    <div class="col-md-12">
        <ol class="breadcrumb">
            <li><a>主页</a></li>
            <li><a>风控管理</a></li>
            <li class="active"><strong>交易限制管理</strong></li>
        </ol>
    </div>
</div>
<!-- 主要内容 -->
<div class="wrapper wrapper-content animated fadeIn" ng-app ng-controller="transLimitRuleQueryCtrl">
    <form class="form-horizontal" id="form1">
        <div class="row">
            <div class="col-lg-12">
                <div class="">
                    <div class="panel-body ibox float-e-margins">
                        <div class="ibox-content">
                            <div class="ibox-title">
                                <h5>交易限制管理</h5>
                            </div>
                            <div class="form-group">
                                <label class="col-sm-2 control-label">组织:</label>
                                <div class="col-sm-2">
                                    <select class="form-control" ng-model="info.teamId" ng-options="x.value as x.text for x in teamType"/>
                                </div>
                                <label class="col-sm-2 control-label">卡类型:</label>
                                <div class="col-sm-2">
                                    <select class="form-control" ng-model="info.cardType" ng-options="x.value as x.text for x in cardTypeAll"/>
                                </div>
                                <label class="col-sm-2 control-label">省份:</label>
                                <div class="col-sm-2">
                                    <select class="form-control" ng-model="info.rulesProvinces" ng-options="x.name as x.name for x in provinceInfos">
                                        <option value="" selected>全部</option>
                                    </select>
                                </div>
                            </div>
                            <div class="form-group">
                                <label class="col-sm-2 control-label">状态:</label>
                                <div class="col-sm-2">
                                    <select class="form-control" ng-model="info.status" ng-options="x.value as x.text for x in statusSelect"/>
                                </div>
                                <label class="col-sm-2 control-label">创建人:</label>
                                <div class="col-sm-2">
                                    <input type="text" class="form-control" ng-model="info.createPerson">
                                </div>
                                <label class="col-sm-2 control-label">业务类型:</label>
                                <div class="col-sm-2">
                                    <select class="form-control" ng-model="info.limitAction" ng-options="x.value as x.text for x in limitActiones"/>
                                </div>
                            </div>
                            <div class="form-group">
                                <label class="col-sm-2 control-label">创建时间:</label>
                                <div class="col-sm-6">
                                    <input id="d5233" class="form-control" type="datetime" ng-model="info.createTimeBegin"
                                           onchange="" style="width:auto;display:inline-block;"
                                           onFocus="var d5234=$dp.$('d5234');WdatePicker({skin:'whyGreen',dateFmt: 'yyyy-MM-dd HH:mm:ss',onpicked:function(){d5234.focus();},maxDate:'#F{$dp.$D(\'d5234\')}'})"/>
                                    ~
                                    <input id="d5234" class="form-control" type="datetime" ng-model="info.createTimeEnd"
                                           onchange="" style="width:auto;display:inline-block;"
                                           onFocus="WdatePicker({skin:'whyGreen',dateFmt: 'yyyy-MM-dd HH:mm:ss',minDate:'#F{$dp.$D(\'d5233\')}'})"/>
                                </div>

                            </div>
                            <div class="form-group" style="margin-top:30px">
                                <div class="col-sm-12">
                                    <label class="col-sm-2 control-label"></label>
                                    <button class="btn btn-primary6 btn-mr20" type="button" ng-click="query()" >查询</button>
                                    <button class="btn btn-primary3 btn-mr20" type="button" ng-click="clear()" >清空</button>
                                    <button class="btn btn-new btn-mr20" type="button" ng-show="hasPermit('transLimit.addTransLimitRule')" ui-sref="risk.addTransLimitRule" >新增</button>
                                    <button class="btn btn-primary7 btn-mr20" type="button" ng-show="hasPermit('transLimit.importTransLimitRule')" ng-click="exportInfo()" >导出</button>
                                </div>
                            </div>
                        </div>
                    </div>
                    <div class="panel-body ibox float-e-margins">
                        <div class="ibox-title">
                            <div class="ibox-content">
                                <!--<div class="ibox-title">
                                    <h5>交易限制管理列表</h5>
                                </div>-->
                                <div class="form-group">
                                    <label class="col-sm-1 control-label">限制额度总开关:</label>
                                    <div class="col-sm-1">
                                        <span ng-show="hasPermit('transLimit.changeTransLimitRuleStatusAll')"><switch class="switch switch-s" ng-model="quotaStatus" ng-true-value="1" ng-false-value="0" ng-change="changeQuotaStatus(quotaStatus)" /></span>
                                        <span ng-show="!hasPermit('transLimit.changeTransLimitRuleStatusAll')"> <span ng-show="quotaStatus==1" class="lh30" >开启</span><span ng-show="quotaStatus==0" class="lh30" >关闭</span></span>
                                    </div>
                                    <label class="col-sm-1 control-label">限制交易总开关:</label>
                                    <div class="col-sm-1">
                                        <span ng-show="hasPermit('transLimit.changeTransLimitRuleStatusAll')"><switch class="switch switch-s" ng-model="transStatus" ng-true-value="1" ng-false-value="0" ng-change="changeTransStatus(transStatus)" /></span>
                                        <span ng-show="!hasPermit('transLimit.changeTransLimitRuleStatusAll')"> <span ng-show="transStatus==1" class="lh30" >开启</span><span ng-show="transStatus==0" class="lh30" >关闭</span></span>
                                    </div>
                                </div>
                                <div class="form-group">
                                    <div class="gridStyle" ui-grid="userGrid" ui-grid-selection ui-grid-pagination
                                         ui-grid-resize-columns ui-grid-pinning></div>
                                    <div ng-show="loadImg" class="timg"></div>
                                </div>
                            </div>
                        </div>
                        <div style="height:30px"></div>
                    </div>
                </div>
            </div>
        </div>
    </form>


    <!--操作日志-->
    <div id="showLogDiv" class="modal fade"  role="dialog">
        <div class="modal-dialog" style="width: 600px">
            <div class="modal-content">
                <div class="modal-header">
                    <button type="button" class="close" data-dismiss="modal">
                        &times;</button>
                    <h3 class="modal-title">操作记录</h3>
                </div>
                <div class="row">
                    <div class="col-lg-12">
                        <div class="panel-body ibox float-e-margins">
                            <div class="ibox-content">
                                <div class="form-group">
                                    <div ui-grid="showLogGrid" ui-grid-resize-columns ui-grid-pinning class="gridStyle auditDetail"></div>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>

</div>